package com.project.client.vo;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class MessageVo {
    @NotBlank(message = "姓名不可空")
    @Size(min = 1, max = 20, message = "姓名过长")
    private String name;

    //电话
    @NotBlank(message = "电话不可空")
    @Size(min = 1, max = 20, message = "电话号码过长")
    private String phone;

    //内容
    @NotBlank(message = "内容不可空")
    @Size(min = 1, max = 255, message = "内容长度为1-255个字符")
    private String content;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
